package com.aishua.fire.controller.activiti;

import java.util.Map;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LeadTaskListen implements TaskListener{

	@Override
	public void notify(DelegateTask delegateTask) {
		Map<String, Object> variables = delegateTask.getVariables();
		String drill_id = (String) variables.get("operator");
		log.info("drill_id:{}",drill_id);
		delegateTask.setAssignee(drill_id);
	}

}
